package com.y.singletonl;

/**
 * 线程安全单例
 * @author Administrator
 *
 */
public class Emperor {

	private final static Emperor emperor = new Emperor();
	
	private Emperor() {
		
	}
	
	public static Emperor getInstance() {
		return emperor;
	}
	
	public void sayName() {
		System.out.println("我是叶少宁");
	}
	
}
